package base.connector;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author daxue0929
 * @date 2023/4/14
 */

public class Main {

    @Test
    public void listExample() {
        List<String> list = new ArrayList<>();
        list.add("daxue");
        list.add("xiaoxue");

        list.forEach(
            new TestConsume()
                .andThen(m -> System.out.println(m + "-123"))
                .andThen(n -> System.out.println(n + "-456"))
        );
    }
}
